<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | Author: allen.qiang
// +----------------------------------------------------------------------

/**
 * wap前台首页页控制器
 * @package  htdocs
 * @subpackage  shop
 * @author   allen.qiang
 * @version 1.0
 */
require ('core/shop.php');
quanli_require('framework/wx/wxHelp.php');
quanli_require('module/base/customer/custDeliver.class.php');
quanli_require('module/base/system/sysRegion.class.php');


$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 0;

switch ($action){
    case 1: //订单提交

        break;



    default:
        init();
        break;
}


function init(){
    $user = array(); //wxHelp::getUser();
    $user['pcustID'] = 8001129;

    $userFlg = 0;
    if(isset($user['mobile']) && !empty($user['mobile'])) {
        $userFlg = 1;
    }

    //获取用户地址
    $custDeliver = new custDeliver();
    $param = array('pcustID' => $user['pcustID']);
    $addList = $custDeliver->searchCustDeliver($param);

    //城市、区域
    $sysRegion = new sysRegion();
    $cityArr = $sysRegion->searchRegion(1);
    $countyArr = $sysRegion->searchRegion(2);

    //分类


    elog($addList);
}







